<?php

// @formatter:off
/**
 * @file side.php
 * @author Alejandro Dario Simi
 * @date $Date: 2014-05-04 01:33:52 +0000 (Sun, 04 May 2014) $
 *
 * $Id: side.php 111 2014-05-04 01:33:52Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/trunk/extensions/DuplicatedImages/dimages/side.php $
 */
// @formatter:on

class ActionControllerBooruSide extends WCActionController {
	//
	// Protected methods.
	protected function subRun() {
		$ok = true;
		//
		// Loading global pointers.
		global $wcImage;

		if($wcImage && $wcImage->ok()) {
			foreach(WCViewInfoFactory::LoadInfo($wcImage) as $key => $value) {
				eval("\$this->_manager->booru_info_{$key} = \$value;");
			}
			foreach(WCViewInfoFactory::LoadInterfacesInfo($wcImage) as $key => $value) {
				eval("\$this->_manager->booru_info_{$key} = \$value;");
			}
			$this->_manager->WC_E_BOORU_active = true;
			$this->_manager->WC_E_BOORU_uri = WC_E_BOORU_URI;
		}

		return $ok;
	}
}

?>